﻿<%@ page language="C#" autoeventwireup="true" inherits="DNS.GauriMariam.Web.Main, App_Web_s83opvs6" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title><%=Request.Url.Host %></title>
</head>
<body bottommargin="0px" topmargin="0px" leftmargin="0px" rightmargin="0px" bgcolor="black" onload="javascript:setlayout();">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div>
                    <table id="TableMain" cellpadding="0px" cellspacing="0px" border="0px" bordercolor="gainsboro">
                    <tr id="TRTop">
                        <td align="Center" colspan=1>
                            <asp:Panel ID="Panel1" runat="server">
                                <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton13" runat="server" OnClick="ImageButton_Click" Visible="false" />             

                                 <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton39" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                            </asp:Panel>
                        </td>
                         <td align="Center" colspan=1>
                            <asp:Panel ID="Panel2" runat="server">
                                <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton14" runat="server"  OnClick="ImageButton_Click" Visible="false" />             

                                <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton40" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                            </asp:Panel>
                        </td>
                        <td align="Center" colspan=1>
                            <asp:Panel ID="Panel3" runat="server">
                                <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton15" runat="server" OnClick="ImageButton_Click" Visible="false" />             

                                <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton41" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                            </asp:Panel>
                        </td>
                        <td align="Center" colspan=1>
                            <asp:Panel ID="Panel4" runat="server">
                                <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton16" runat="server"  OnClick="ImageButton_Click" Visible="false" />             

                                <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton42" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                            </asp:Panel>
                        </td>
                        <td align="Center" colspan=1>
                            <asp:Panel ID="Panel5" runat="server">
                                <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton17" runat="server"  OnClick="ImageButton_Click" Visible="false" />             

                                <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton43" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                            </asp:Panel>
                        </td>
                        <td align="Center" colspan=1>
                            <asp:Panel ID="Panel6" runat="server">
                                <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton18" runat="server"  OnClick="ImageButton_Click" Visible="false" />             

                                <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton44" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                            </asp:Panel>
                        </td>
                        <td align="Center" colspan=1>
                            <asp:Panel ID="Panel7" runat="server">
                                <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton19" runat="server"  OnClick="ImageButton_Click" Visible="false" />             

                                <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton45" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                            </asp:Panel>
                        </td>
                        <td align="Center" colspan=1>
                            <asp:Panel ID="Panel8" runat="server">
                                <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton20" runat="server"  OnClick="ImageButton_Click" Visible="false" />             

                                <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton46" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                            </asp:Panel>
                        </td>
                        <td align="Center" colspan=1>
                            <asp:Panel ID="Panel9" runat="server">
                                <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton21" runat="server"  OnClick="ImageButton_Click" Visible="false" />             

                                <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton47" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                            </asp:Panel>
                        </td>
                        <td align="Center" colspan=1>
                            <asp:Panel ID="Panel10" runat="server">
                                <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton22" runat="server"  OnClick="ImageButton_Click" Visible="false" />             

                                <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton48" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                            </asp:Panel>
                        </td>
                    </tr>
                    <tr>
                        <td align="Center" colspan=1>
                            <table id="TableLeft" width="100%" height="100%" border="0px" bordercolor="gainsboro" cellpadding="0px" cellspacing="0px">
                                <tr>
                                    <td align="Center">
                                        <asp:Panel ID="Panel11" runat="server">
                                            <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton7" runat="server"  OnClick="ImageButton_Click" Visible="false" />             
 
                                             <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton33" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="Center">
                                        <asp:Panel ID="Panel12" runat="server">
                                            <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton8" runat="server"  OnClick="ImageButton_Click" Visible="false" />             
 
                                             <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton34" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="Center">
                                        <asp:Panel ID="Panel13" runat="server">
                                            <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton9" runat="server"  OnClick="ImageButton_Click" Visible="false" />             
 
                                             <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton35" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="Center">
                                        <asp:Panel ID="Panel14" runat="server">
                                            <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton10" runat="server"  OnClick="ImageButton_Click" Visible="false" />             
 
                                             <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton36" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="Center">
                                        <asp:Panel ID="Panel15" runat="server">
                                            <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton11" runat="server"  OnClick="ImageButton_Click" Visible="false" />             
 
                                             <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton37" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="Center">
                                        <asp:Panel ID="Panel16" runat="server">
                                            <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton12" runat="server"  OnClick="ImageButton_Click" Visible="false" />             
                                            <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton38" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                                        </asp:Panel>
                                    </td>
                                </tr>                    
                            </table>
                        </td>
                        <td align="Center" colspan=8 valign="top">
                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate> 
                                <asp:Image ID="ImageBigScreen" runat="server"  BorderWidth="1px" BorderColor="#76923C" BorderStyle="Solid" Visible="false"/>
                                <br /><asp:Label ID="LCaption" runat="server" Text="" BackColor="Black" BorderWidth="0px" ForeColor="Silver" Font-Names="Brush Script MT" Font-Size="Large" Visible="false"></asp:Label>
                            </ContentTemplate>
                            <Triggers>
                                <asp:PostBackTrigger ControlID="BUpload" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton1" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton2" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton3" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton4" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton5" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton6" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton7" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton8" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton9" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton10" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton11" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton12" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton13" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton14" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton15" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton16" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton17" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton18" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton19" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton20" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton21" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton22" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton23" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton24" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton25" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="ImageButton26" EventName="Click" />
                            </Triggers>
                        </asp:UpdatePanel>
                        </td>
                        <td align="Center" colspan=1 valign="top">
                            <table id="TableRight" width="100%" height="100%" border="0px" bordercolor="gainsboro" cellpadding="0px" cellspacing="0px">
                                <tr>
                                    <td align="Center">
                                        <asp:Panel ID="Panel17" runat="server">
                                            <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton1" runat="server"  OnClick="ImageButton_Click" Visible="false" />             

                                             <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton27" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="Center">
                                        <asp:Panel ID="Panel18" runat="server">
                                            <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton2" runat="server"  OnClick="ImageButton_Click" Visible="false" />             
  
                                             <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton28" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                                       </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="Center">
                                        <asp:Panel ID="Panel19" runat="server">
                                            <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton3" runat="server"  OnClick="ImageButton_Click" Visible="false" />             
 
                                             <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton29" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="Center">
                                        <asp:Panel ID="Panel20" runat="server">
                                            <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton4" runat="server"  OnClick="ImageButton_Click" Visible="false" />             
 
                                             <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton30" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="Center">
                                        <asp:Panel ID="Panel21" runat="server">
                                            <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton5" runat="server"  OnClick="ImageButton_Click" Visible="false" />             
 
                                             <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton31" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="Center">
                                        <asp:Panel ID="Panel22" runat="server">
                                            <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton6" runat="server"  OnClick="ImageButton_Click" Visible="false" />             
 
                                             <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton32" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                                        </asp:Panel>
                                    </td>
                                </tr>                    
                            </table>            
                        </td>
                    </tr>
                    <tr id="TRBottom" valign="top">
                        <td align="Center" colspan=1>
                            <asp:Panel ID="Panel23" runat="server">
                                <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton23" runat="server"  OnClick="ImageButton_Click" Visible="false" />             

                                <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton49" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                            </asp:Panel>
                        </td>
                         <td align="Center" colspan=1>
                            <asp:Panel ID="Panel24" runat="server">
                                <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton24" runat="server"  OnClick="ImageButton_Click" Visible="false" />             

                                <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton50" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                            </asp:Panel>
                        </td>
                        <td align="Center" colspan=6 valign="top">
                            <asp:Panel ID="PUpload" runat="server" Visible="false" BorderColor="Khaki" BorderStyle="Solid" BorderWidth="1px">
                                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                    <ContentTemplate>
                                        <asp:DropDownList ID="DDLCats" runat="server"   BorderWidth="1px" Font-Size="X-Small" OnSelectedIndexChanged="DDLCats_SelectedIndexChanged" AutoPostBack="true">
                                        </asp:DropDownList>
                                        <asp:TextBox BackColor="Khaki" Font-Bold="true" Font-Size="X-Small" ForeColor="MidnightBlue"   BorderWidth="1px" ID="TBCat" runat="server" Width="13%"></asp:TextBox>
                                        <cc1:TextBoxWatermarkExtender
                                            ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="TBCat" WatermarkText="(category)">
                                        </cc1:TextBoxWatermarkExtender>
                                        <asp:DropDownList ID="DDLRats"  BorderWidth="1px" Font-Size="X-Small" runat="server" OnSelectedIndexChanged="DDLRats_SelectedIndexChanged" AutoPostBack="true">
                                            <asp:ListItem Value="Rating">All Ratings</asp:ListItem>
                                            <asp:ListItem Value="1">1</asp:ListItem>
                                            <asp:ListItem Value="2">2</asp:ListItem>
                                            <asp:ListItem Value="3">3</asp:ListItem>
                                            <asp:ListItem Value="4">4</asp:ListItem>
                                            <asp:ListItem Value="5">5</asp:ListItem>
                                            <asp:ListItem Value="6">6</asp:ListItem>
                                            <asp:ListItem Value="7">7</asp:ListItem>
                                            <asp:ListItem Value="8">8</asp:ListItem>
                                            <asp:ListItem Value="9">9</asp:ListItem>
                                            <asp:ListItem Value="10">10</asp:ListItem>
                                        </asp:DropDownList>
                                        <asp:TextBox BackColor="Khaki" Font-Bold="true" Font-Size="X-Small" ForeColor="MidnightBlue"  BorderWidth="1px" ID="TBRat" runat="server" Width="13%"></asp:TextBox>
                                        <cc1:TextBoxWatermarkExtender
                                            ID="TextBoxWatermarkExtender2" runat="server" TargetControlID="TBRat" WatermarkText="(rating)">
                                        </cc1:TextBoxWatermarkExtender>                                        
                                        <asp:DropDownList ID="DDLLocs" BorderWidth="1px" Font-Size="X-Small" runat="server"  OnSelectedIndexChanged="DDLLocs_SelectedIndexChanged" AutoPostBack="true">
                                        </asp:DropDownList>
                                        <asp:TextBox BackColor="Khaki" Font-Bold="true" Font-Size="X-Small" ForeColor="MidnightBlue"  BorderWidth="1px" ID="TBLoc" runat="server" Width="13%"></asp:TextBox>
                                        <cc1:TextBoxWatermarkExtender
                                            ID="TextBoxWatermarkExtender3" runat="server" TargetControlID="TBLoc" WatermarkText="(location)">
                                        </cc1:TextBoxWatermarkExtender>                                        
                                        <asp:TextBox BackColor="Khaki" Font-Bold="true" Font-Size="X-Small" ForeColor="MidnightBlue"  ID="TBDateTaken"  BorderWidth="1px" runat="server" Width="13%"></asp:TextBox>
                                        <cc1:TextBoxWatermarkExtender
                                            ID="TextBoxWatermarkExtender5" runat="server" TargetControlID="TBDateTaken" WatermarkText="(date taken)">
                                        </cc1:TextBoxWatermarkExtender>
                                        <asp:ImageButton ID="IBPopupCalendar" runat="server" ImageUrl="~/Images/calendar.jpg"/>
                                        <cc1:CalendarExtender
                                            ID="CalendarExtender1" runat="server" TargetControlID="TBDateTaken" PopupButtonID="IBPopupCalendar">
                                        </cc1:CalendarExtender>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                                <asp:TextBox  BackColor="Khaki" Font-Bold="true" Font-Size="X-Small" ForeColor="MidnightBlue"  ID="TBCaption" BorderWidth="1px" runat="server" Width="48%"></asp:TextBox>
                                        <cc1:TextBoxWatermarkExtender
                                            ID="TextBoxWatermarkExtender4" runat="server" TargetControlID="TBCaption" WatermarkText="(caption)">
                                        </cc1:TextBoxWatermarkExtender>                                
                                <asp:TextBox  BackColor="Khaki" Font-Bold="true" Font-Size="X-Small" ForeColor="MidnightBlue"  ID="TBSortOrder" runat="server" Text="0" Width="4%"></asp:TextBox>
                                <asp:FileUpload ID="FUOriginal" runat="server" BackColor="Khaki" Width="28%"  BorderWidth="1px" Font-Size="X-Small" />
                                <asp:Button ID="BUpload" Text="Upload Image" runat="server" OnClick="BUpload_Click" Width="15%"  BorderWidth="1px" Font-Size="X-Small" />  
                            </asp:Panel>
                            <asp:Panel ID="PKey" runat="server" Visible="true" BorderColor="Khaki" BorderStyle="Solid" BorderWidth="1px">
                                <asp:DropDownList ID="DDLCategory" runat="server" OnSelectedIndexChanged="DDLCategory_SelectedIndexChanged" AutoPostBack="true">
                                </asp:DropDownList>
                                <asp:DropDownList ID="DDLRating" runat="server" OnSelectedIndexChanged="DDLRating_SelectedIndexChanged" AutoPostBack="true">
                                    <asp:ListItem Value="Rating">All Ratings</asp:ListItem>
                                    <asp:ListItem Value="1">1</asp:ListItem>
                                    <asp:ListItem Value="2">2</asp:ListItem>
                                    <asp:ListItem Value="3">3</asp:ListItem>
                                    <asp:ListItem Value="4">4</asp:ListItem>
                                    <asp:ListItem Value="5">5</asp:ListItem>
                                    <asp:ListItem Value="6">6</asp:ListItem>
                                    <asp:ListItem Value="7">7</asp:ListItem>
                                    <asp:ListItem Value="8">8</asp:ListItem>
                                    <asp:ListItem Value="9">9</asp:ListItem>
                                    <asp:ListItem Value="10">10</asp:ListItem>
                                    
                                </asp:DropDownList>
                                <asp:DropDownList ID="DDLLocation" runat="server"  OnSelectedIndexChanged="DDLLocation_SelectedIndexChanged" AutoPostBack="true">
                                </asp:DropDownList>
                                <input type="password" id="IPassword" runat="server" style="height: 15px; font-size: x-small;" onserverchange="IPassword_ServerChange" />
                                <asp:ImageButton BorderWidth="0px" BorderColor="White" BorderStyle="Solid" Height="15px" ID="IKey" runat="server"  OnClick="IKey_Click" ImageUrl="~/Images/key.jpg"/>             
                            </asp:Panel>                                   
                        </td>
                        <td align="Center" colspan=1>
                            <asp:Panel ID="Panel25" runat="server">
                                <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton25" runat="server"  OnClick="ImageButton_Click" Visible="false" />             

                                <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton51" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                            </asp:Panel>
                        </td>
                        <td align="Center" colspan=1>
                            <asp:Panel ID="Panel26" runat="server">
                                <asp:ImageButton BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton26" runat="server"  OnClick="ImageButton_Click" Visible="false" />             

                                <asp:ImageButton ImageUrl="~/Images/DeleteHS.png" BackColor="Wheat" BorderWidth="1px" BorderColor="White" BorderStyle="Solid" ID="ImageButton52" runat="server" OnClick="IBDelete_Click" Visible="false" />             
                            </asp:Panel>
                        </td>
                    </tr>        
                    </table>
        </div>
            <input type="hidden" id="CH" value="" runat="server" />
    </form>
    <script type="text/javascript">
            //setlayout();
            function setlayout()
            {
                //debugger;
                maintable = document.getElementById('TableMain');
                maintable.style.height = document.documentElement.clientHeight*8/10;
                maintable.style.width = document.documentElement.clientWidth;
                lefttable = document.getElementById('TableLeft');
                lefttable.style.height = document.documentElement.clientHeight*6/10;
                righttable = document.getElementById('TableRight');
                righttable.style.height = document.documentElement.clientHeight*6/10;
                toprow = document.getElementById('TRTop');
                toprow.style.height = document.documentElement.clientHeight/10;
                bottomrow = document.getElementById('TRBottom');
                bottomrow.style.height = document.documentElement.clientHeight/10;
                imagebigscreen = document.getElementById('ImageBigScreen');
                if(imagebigscreen != null)
                {
                     imagebigscreen.style.height = document.documentElement.clientHeight*6/10;   
                    document.getElementById(ctlClientHeight).innerText = document.documentElement.clientHeight*6/10;     
                }
            }
    </script>

</body>
</html>
